import {createStore} from 'vuex'
import VuexPersist from 'vuex-persist'

const vuexLocal = new VuexPersist({
    storage: window.localStorage  // 可选存储方式
})

export default createStore({
    state: {
        deviceList: null
  
    },
    getters: {

    },
    mutations: {
        changedeviceList(state, payload) {
            state.deviceList = payload
        }
    },
    actions: {},
    modules: {},
    plugins: [vuexLocal.plugin]
})

